import React from 'react'
import ImgUrl from "../assets/images/login.jpg";
import {Image} from "antd";

interface ImgType {
    src: string
}

export default function Img({src}: ImgType) {

    return (
        <Image width={'10rem'} height={'8rem'} style={{
            cursor: 'pointer'
        }} src={src || ImgUrl}
               fallback={fallback}/>
    );
};

const fallback = ""